<%@ Control Language="C#" AutoEventWireup="true" CodeFile="CustomerRegister.ascx.cs"
    Inherits="Tathata.Web.Modules.Account.CustomerRegisterControl" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<div class="hl">
    <img src="<%=Page.ResolveUrl("~/images/sp.gif")%>" /></div>
<div style="position: relative; float: left; width: 100%">
    <div class="blockHeader">
        <img src="<%=Page.ResolveUrl("~/images/VerticalLine.gif")%>" style="margin-top: 14px;" /><b><%=GetLocaleResourceString("RegisterPage.Registration")%></b><br />
    </div>
    <div class="text1">
        <asp:Panel ID="pnlRegistration" runat="server" Style="width: 100%">
            <asp:CreateUserWizard ID="CreateUserForm" EmailRegularExpression="[\w\.-]+(\+[\w-]*)?@([\w-]+\.)+[\w-]+"
                RequireEmail="False" runat="server" OnCreatedUser="CreatedUser" OnCreatingUser="CreatingUser"
                FinishDestinationPageUrl="~/Account.aspx" ContinueDestinationPageUrl="~/Account.aspx"
                Width="100%">
                <WizardSteps>
                    <asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server" Title="">
                        <ContentTemplate>
                            <table cellspacing="0" cellpadding="0" border="0">
                                <tbody>
                                    <tr>
                                        <td colspan="2" class="messageError">
                                            <b>
                                                <asp:Literal ID="ErrorMessage" runat="server" EnableViewState="False"></asp:Literal>
                                            </b>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                            <table cellspacing="0" cellpadding="0" border="0">
                                <tbody>
                                    <tr>
                                        <td>
                                            <img height="10" width="100%" border="0" src="<%=Page.ResolveUrl("~/images/trans.gif")%>" />
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                            <table width="100%" cellspacing="0" cellpadding="2" border="0">
                                <tbody>
                                    <tr>
                                        <td>
                                            <b>
                                                <%=GetLocaleResourceString("RegisterPage.YourPersonalDetails")%></b>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                            <table cellspacing="0" cellpadding="0" class="blockBordered">
                                <tbody>
                                    <tr>
                                        <td>
                                            <table cellspacing="2" cellpadding="2" border="0">
                                                <tbody>
                                                    <tr>
                                                        <td>
                                                            <%=GetLocaleResourceString("RegisterPage.Gender")%>:
                                                        </td>
                                                        <td>
                                                            <asp:RadioButton runat="server" ID="rbGenderM" GroupName="Gender" Text="Male" Checked="true" />
                                                            <asp:RadioButton runat="server" ID="rbGenderF" GroupName="Gender" Text="Female" />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <%=GetLocaleResourceString("RegisterPage.FirstName")%>:
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtFirstName" runat="server"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ID="rfvFirstName" runat="server" ControlToValidate="txtFirstName"
                                                                ErrorMessage="First name is required." ToolTip="First name is required." ValidationGroup="CreateUserForm">*</asp:RequiredFieldValidator>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <%=GetLocaleResourceString("RegisterPage.LastName")%>:
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtLastName" runat="server"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ID="rfvLastName" runat="server" ControlToValidate="txtLastName"
                                                                ErrorMessage="Last name is required." ToolTip="Last name is required." ValidationGroup="CreateUserForm">*</asp:RequiredFieldValidator>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <%=GetLocaleResourceString("RegisterPage.DateOfBirth")%>:
                                                        </td>
                                                        <td>
                                                            <asp:TextBox runat="server" ID="txtDateOfBirth" />
                                                            <asp:ImageButton runat="Server" ID="iDateOfBirth" ImageUrl="~/images/Calendar_scheduleHS.png"
                                                                AlternateText="Click to show calendar" /><br />
                                                            <ajaxToolkit:CalendarExtender ID="cDateOfBirthButtonExtender" runat="server" TargetControlID="txtDateOfBirth"
                                                                PopupButtonID="iDateOfBirth" />
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <%=GetLocaleResourceString("RegisterPage.E-MailAddress")%>:
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="UserName" runat="server"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ID="EmailRequired" runat="server" ControlToValidate="UserName"
                                                                ErrorMessage='*' ToolTip='Email is required' Display="Dynamic" ValidationGroup="CreateUserForm">
                                                            </asp:RequiredFieldValidator><asp:RegularExpressionValidator runat="server" ID="EmailValidator"
                                                                Display="Dynamic" ControlToValidate="UserName" ErrorMessage='*' ToolTip='Invalid email'
                                                                ValidationExpression="[\w\.-]+(\+[\w-]*)?@([\w-]+\.)+[\w-]+" ValidationGroup="CreateUserForm"></asp:RegularExpressionValidator>
                                                        </td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                            <table cellspacing="0" cellpadding="0" border="0">
                                <tbody>
                                    <tr>
                                        <td>
                                            <img height="10" width="100%" border="0" src="<%=Page.ResolveUrl("~/images/trans.gif")%>" />
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                            <table cellspacing="0" cellpadding="0" border="0">
                                <tbody>
                                    <tr>
                                        <td>
                                            <b>
                                                <%=GetLocaleResourceString("RegisterPage.CompanyDetails")%></b>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                            <table cellspacing="0" cellpadding="0" class="blockBordered">
                                <tbody>
                                    <tr>
                                        <td>
                                            <table cellspacing="2" cellpadding="2" border="0">
                                                <tbody>
                                                    <tr>
                                                        <td>
                                                            <%=GetLocaleResourceString("RegisterPage.CompanyName")%>:
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtCompany" runat="server"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                            <table cellspacing="0" cellpadding="0" border="0">
                                <tbody>
                                    <tr>
                                        <td>
                                            <img height="10" width="100%" border="0" src="<%=Page.ResolveUrl("~/images/trans.gif")%>" />
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                            <table cellspacing="0" cellpadding="0" border="0">
                                <tbody>
                                    <tr>
                                        <td>
                                            <b>
                                                <%=GetLocaleResourceString("RegisterPage.YourAddress")%></b>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                            <table cellspacing="0" cellpadding="0" class="blockBordered">
                                <tbody>
                                    <tr>
                                        <td>
                                            <table cellspacing="2" cellpadding="2" border="0">
                                                <tbody>
                                                    <tr>
                                                        <td>
                                                            <%=GetLocaleResourceString("RegisterPage.StreetAddress")%>:
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtStreetAddress" runat="server"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ID="rfvStreetAddress" runat="server" ControlToValidate="txtStreetAddress"
                                                                ErrorMessage="Street address is required." ToolTip="Street address is required."
                                                                ValidationGroup="CreateUserForm">*</asp:RequiredFieldValidator>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <%=GetLocaleResourceString("RegisterPage.StreetAddress2")%>:
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtStreetAddress2" runat="server"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <%=GetLocaleResourceString("RegisterPage.PostCode")%>:
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtZipPostalCode" runat="server"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ID="rfvZipPostalCode" runat="server" ControlToValidate="txtZipPostalCode"
                                                                ErrorMessage="Zip / Postal code is required." ToolTip="Zip / Postal code is required."
                                                                ValidationGroup="CreateUserForm">*</asp:RequiredFieldValidator>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <%=GetLocaleResourceString("RegisterPage.City")%>:
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtCity" runat="server"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ID="rfvCity" runat="server" ControlToValidate="txtCity"
                                                                ErrorMessage="City is required." ToolTip="City is required." ValidationGroup="CreateUserForm">*</asp:RequiredFieldValidator>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <%=GetLocaleResourceString("RegisterPage.Country")%>:
                                                        </td>
                                                        <td>
                                                            <asp:DropDownList ID="ddlCountry" AutoPostBack="True" runat="server" OnSelectedIndexChanged="ddlCountry_SelectedIndexChanged"
                                                                Width="137px">
                                                            </asp:DropDownList>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <%=GetLocaleResourceString("RegisterPage.StateProvince")%>:
                                                        </td>
                                                        <td>
                                                            <asp:DropDownList ID="ddlStateProvince" AutoPostBack="False" runat="server" Width="137px">
                                                            </asp:DropDownList>
                                                        </td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                            <table cellspacing="0" cellpadding="0" border="0">
                                <tbody>
                                    <tr>
                                        <td>
                                            <img height="10" width="100%" border="0" src="<%=Page.ResolveUrl("~/images/trans.gif")%>" />
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                            <table cellspacing="0" cellpadding="0" border="0">
                                <tbody>
                                    <tr>
                                        <td>
                                            <b>
                                                <%=GetLocaleResourceString("RegisterPage.YourContactInformation")%></b>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                            <table cellspacing="0" cellpadding="0" class="blockBordered">
                                <tbody>
                                    <tr>
                                        <td>
                                            <table cellspacing="2" cellpadding="2" border="0">
                                                <tbody>
                                                    <tr>
                                                        <td>
                                                            <%=GetLocaleResourceString("RegisterPage.TelephoneNumber")%>:
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtPhoneNumber" runat="server"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ID="rfvPhoneNumber" runat="server" ControlToValidate="txtPhoneNumber"
                                                                ErrorMessage="Telephone Number is required." ToolTip="Telephone Number is required."
                                                                ValidationGroup="CreateUserForm">*</asp:RequiredFieldValidator>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <%=GetLocaleResourceString("RegisterPage.FaxNumber")%>:
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="txtFaxNumber" runat="server"></asp:TextBox>
                                                        </td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                            <table cellspacing="0" cellpadding="0" border="0">
                                <tbody>
                                    <tr>
                                        <td>
                                            <img height="10" width="100%" border="0" src="<%=Page.ResolveUrl("~/images/trans.gif")%>" />
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                            <table cellspacing="0" cellpadding="0" border="0">
                                <tbody>
                                    <tr>
                                        <td>
                                            <img height="10" width="100%" border="0" src="<%=Page.ResolveUrl("~/images/trans.gif")%>" />
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                            <table cellspacing="0" cellpadding="0" border="0">
                                <tbody>
                                    <tr>
                                        <td>
                                            <b>
                                                <%=GetLocaleResourceString("RegisterPage.YourPassword")%></b>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                            <table cellspacing="0" cellpadding="0" class="blockBordered">
                                <tbody>
                                    <tr>
                                        <td>
                                            <table cellspacing="2" cellpadding="2" border="0">
                                                <tbody>
                                                    <tr>
                                                        <td>
                                                            <%=GetLocaleResourceString("RegisterPage.Password")%>:
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="Password" runat="server" MaxLength="50" TextMode="Password"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                                                ErrorMessage="Password is required." ToolTip="Password is required." ValidationGroup="CreateUserForm">*</asp:RequiredFieldValidator>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <%=GetLocaleResourceString("RegisterPage.PasswordConfirmation")%>:
                                                        </td>
                                                        <td>
                                                            <asp:TextBox ID="ConfirmPassword" runat="server" TextMode="Password"></asp:TextBox>
                                                            <asp:RequiredFieldValidator ID="ConfirmPasswordRequired" runat="server" ControlToValidate="ConfirmPassword"
                                                                ErrorMessage="*" ToolTip='Confirm password is required.' ValidationGroup="CreateUserForm"></asp:RequiredFieldValidator>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td colspan="2">
                                                            <asp:CompareValidator ID="PasswordCompare" runat="server" ControlToCompare="Password"
                                                                ControlToValidate="ConfirmPassword" Display="Dynamic" ErrorMessage='Entered passwords do not match'
                                                                ValidationGroup="CreateUserForm"></asp:CompareValidator>
                                                        </td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                            <table cellspacing="0" cellpadding="0" border="0">
                                <tbody>
                                    <tr>
                                        <td>
                                            <img height="10" width="100%" border="0" src="<%=Page.ResolveUrl("~/images/trans.gif")%>" />
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </ContentTemplate>
                        <CustomNavigationTemplate>
                            <table border="0" cellspacing="5" style="width: 100%; height: 100%;">
                                <tr align="right">
                                    <td align="right" colspan="0">
                                        <asp:Button ID="StepNextButton" runat="server" CommandName="MoveNext" Text="Register"
                                            ValidationGroup="CreateUserForm" />
                                    </td>
                                </tr>
                            </table>
                        </CustomNavigationTemplate>
                    </asp:CreateUserWizardStep>
                    <asp:CompleteWizardStep ID="CompleteWizardStep1" runat="server">
                        <ContentTemplate>
                            <%=GetLocaleResourceString("RegisterPage.RegistrationCompleted")%>
                            <br />
                            <asp:Button ID="ContinueButton" runat="server" CausesValidation="False" CommandName="Continue"
                                Text="Continue" ValidationGroup="CreateUserForm" />
                        </ContentTemplate>
                    </asp:CompleteWizardStep>
                </WizardSteps>
            </asp:CreateUserWizard>
        </asp:Panel>
    </div>
</div>
